﻿using QQZiFramework;
using System;
using System.Collections.Generic;

using System.Text;

namespace QQZiFramework.Membership
{
    [DBTable(TableName = "A0_Permissions")]
    public class Permission : ITreeDBEntity
    {
        [DBField(Usage = DBFieldUsage.PrimaryKey)]
        public int Id { get; set; }
        /// <summary>
        /// 权限编号名(生成)
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 权限名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 显示显示名称
        /// </summary>
        public string Title { get; set; }

        [DBField(Usage = DBFieldUsage.ForeignKey, ForeignTable = "A0_Permissions", ForeignProperty = "Code")]
        public string ParentCode { get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string MenuUrl { get; set; }
        /// <summary>
        /// 菜单样式
        /// </summary>
        public string MenuCss { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public string OrderIndex { get; set; }

    }
}
